package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.content.entity.TeachplanWork;

import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-04-20
 */
public interface TeachplanWorkService extends IService<TeachplanWork> {

    /**
     * <p>
     * 根据作业id查询课程绑定作业记录
     * </p>
     *
     * @param workId 作业id
     * @return RestResponse
     */
    RestResponse getCountByWorkId(Long workId);

    /**
     * <p>
     * 根据作业id查询绑定的课程计划 返回计划名
     * </p>
     *
     * @param workId 作业id
     * @return RestResponse<List < String>>
     */
    RestResponse<Set<String>> getWorkAssociationPlanName(Long workId);
}
